import { ELocalStorageKey } from '@/types/enums'
import { CURRENT_CONFIG } from '@/api/http/config'
import { sessionStorage } from '@/utils/storage'
export function getWebsocketUrl() {
  const token: string = sessionStorage.get(ELocalStorageKey.Token) || '' as string
  const url = CURRENT_CONFIG.websocketURL + '?token=' + token.replace(/\+/g, '%2B')
  console.log('websocket url:', url)
  return url
}
